/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the seckill4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.jalonjia.seckill.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jalonjia.seckill.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 秒杀活动表
 *
 * @author 贾晓超
 * @date 2022-05-05 20:56:44
 */
@Data
@TableName("seckill_activity")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "秒杀活动表")
public class SeckillActivity extends BaseEntity {

    /**
     * 秒杀活动编号
     */
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(name="秒杀活动编号")
    private Long id;

	/**
	 * 秒杀对象ID
	 */
	@Schema(name="秒杀对象ID")
	private Long targetNo;

    /**
     * 秒杀活动标题
     */
    @Schema(name="秒杀活动标题")
    private String title;

    /**
     * 秒杀活动详情
     */
    @Schema(name="秒杀活动详情")
    private String detail;

    /**
     * 秒杀活动开始时间
     */
    @Schema(name="秒杀活动开始时间")
    private LocalDateTime startTime;

    /**
     * 秒杀活动结束时间
     */
    @Schema(name="秒杀活动结束时间")
    private LocalDateTime endTime;

    /**
     * 秒杀活动类型
     */
    @Schema(name="秒杀活动类型")
    private Integer type;


}
